def FindIndexs(s,sub):
    indexs=[]
    index=0
    for ss in s:
        if ss==sub:
            indexs.append(index)
        index+=1
    return indexs

def ChangeStr(str1):
    str2=set(str1)
    #print(str2)
    for s2 in str2:
        ids=FindIndexs(str1,s2)
        #print(s2,ids,len(ids))
        if len(ids)>1:
            for i in range(len(ids)-1,0,-1):
                if ids[i]-ids[i-1]<=10:
                    # print(f'{ids[i]}-{ids[i - 1]}={ids[i] - ids[i - 1]}')
                    # print(i)
                    # print(str1[:ids[i]])
                    # print(str1[ids[i]+1:])
                    str1=str1[:ids[i]]+'-'+str1[ids[i]+1:]
                    #print(str1)
    #print(str1)
    return str1


if __name__ == '__main__':
    #测试样例：1)Input:abcdefaxc Output:abcdef-x-
    #        2)Input:abcdefaxcqwertba Output:abcdef-x-qw-rtb-
    Input = input('请输入字符串：')
    Output=ChangeStr(Input)
    print(Output)